package baiqitun.stupro.common.constant.support;

import baiqitun.stupro.common.constant.BaseExceptionEnum;

/**
 * TODO 补充异常代码
 * @author kedaji
 */
public enum ExceptionEnum implements BaseExceptionEnum {
    /**
     *
     */
    UNKNOWN("", "未知错误,系统无法处理"),
    PARAMETER_CANNOT_NULL("","参数不能为空"),
    ILLEGAL_PARAMETER("", "非法参数"),
    ILLEGAL_OPERATION("","非法操作"),

    CAPTCHA_EXPIRED("", "验证码已过期"),
    CAPTCHA_ERROR("", "验证码错误"),
    ;
    private String code;
    private String msg;

    ExceptionEnum(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }}
